package com.igeek.compus.backend.notice.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
public class Notice {
    private Integer id;
    private String title;
    private String content;
    private String publisher;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    // 开始时间
    private Date startTime;
    // 截止时间
    private Date endTime;

    private Integer isDel;

    private Integer page;// 前端传多少页
    private Integer limit;// 每页展示多少条数据

    @Override
    public String toString() {
        return "Notice{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", content='" + content + '\'' +
                ", publisher=" + publisher +
                ", createTime=" + createTime +
                ", isDel=" + isDel +
                '}';
    }
}
